package cn.tk.exception;

/**
 * Created by denglw on 2019/5/14.<br/>
 * Desc: 系统通用异常
 */
@SuppressWarnings("unused")
public class CustomException extends RuntimeException {

    /**
     * 错误码
     */
    private int code;

    public CustomException(String message) {
        super(message);
    }

    public CustomException(Throwable cause) {
        super(cause);
    }

    public CustomException(int code, String message) {
        super(message);
        this.code = code;
    }

    public int getCode() {
        return code;
    }
}
